package com.erp.remote.information;


import com.erp.entity.information.PayMethod;
import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@RequestMapping("/information/payMethod")
public interface PayMethodRemote {
    @PostMapping("/selectPayMethodByCompanyId")
    AjaxResult selectPayMethodByCompanyId(@RequestParam("companyId") Integer companyId);


    @PostMapping("/enablePayMethod")
    AjaxResult enablePayMethod(@RequestBody Map<String,Object> params);

    /**
     * 禁用账户
     * @param params
     * @return
     */
    @PostMapping("/disablePayMethod")
    AjaxResult disablePayMethod(@RequestBody Map<String,Object> params);

    @PostMapping("/addPayMethod")
    AjaxResult addPayMethod(@RequestBody PayMethod payMethod);

    @RequestMapping("/checkPayMethodOnly")
    AjaxResult checkPayMethodOnly(@RequestParam("payMethodCode") String payMethodCode);


    @PostMapping("/updatePayMethod")
    AjaxResult updatePayMethod(@RequestBody PayMethod payMethod);
}
